<?xml version="1.0" encoding="UTF-8"?>
<!--
  Created by IntelliJ IDEA.
  User: lukman
  Date: 6/24/11
  Time: 11:54 AM
-->
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets">

<head>
    <title>User</title>
</head>
<f:metadata>
    <f:viewParam name="id" value="#{anasitUserBean.anasitUser.id}"/>
    <f:viewParam name="firstname" value="#{anasitUserBean.anasitUser.name.firstName}"/>
    <f:viewParam name="middlename" value="#{anasitUserBean.anasitUser.name.middleName}"/>
    <f:viewParam name="lastname" value="#{anasitUserBean.anasitUser.name.lastName}"/>
    <f:viewParam name="role" value="#{anasitUserBean.anasitUser.role.role}"/>
    <f:viewParam name="username" value="#{anasitUserBean.anasitUser.userName}"/>
</f:metadata>

<body>
<ui:composition template="/resources/template/yiiTwoColtemplate.xhtml">
    <ui:define name="contentpart">
        <div id="content">
            <p:panel header="Create User" id="createPanel">
                <h:panelGrid id="grid1" columns="2">

                    <h:outputText styleClass="boldview" value="#{msgs.firstName}"/>
                    <h:outputText value="#{anasitUserBean.anasitUser.name.firstName}"/>

                    <h:outputText styleClass="boldview" value="#{msgs.middleName}"/>
                    <h:outputText value="#{anasitUserBean.anasitUser.name.middleName}"/>

                    <h:outputText styleClass="boldview" value="#{msgs.lastName}"/>
                    <h:outputText value="#{anasitUserBean.anasitUser.name.lastName}"/>

                    <h:outputText styleClass="boldview" value="#{msgs.userRole}"/>
                    <h:outputText value="#{anasitUserBean.anasitUser.role.role}"/>

                    <h:outputText styleClass="boldview" value="#{msgs.userName}"/>
                    <h:outputText value="#{anasitUserBean.anasitUser.userName}"/>


                </h:panelGrid>

            </p:panel>
        </div>
    </ui:define>
    <ui:define name="operationspart">
        <h:form>
            <p:menu>
                <p:submenu label="User Operations">
                    <p:menuitem value="View all Users" url="users.xhtml"/>
                    <p:menuitem value="Create User" url="create.xhtml"/>
                    <p:menuitem value="update User" action="#{anasitUserBean.loadUser}"/>
                    <p:menuitem value="Manage Users" url="manage.xhtml"/>
                </p:submenu>
            </p:menu>
        </h:form>
    </ui:define>
</ui:composition>
</body>

</html>

